package com.xx.frame;

import javax.swing.*;

public class NotifyService {

    private static NotifyService notifyService = new NotifyService();

    public static NotifyService getInstance() {
        return notifyService;
    }

    public void panelNotify(JPanel infoPanel, String info) {
        infoPanel.removeAll();
        infoPanel.add(new JLabel(info));
        infoPanel.updateUI();
    }
}
